package bairui.international.console.web.controller.index.module;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageFilterInfo;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageModuleBody;

/**
 *
 * Module_ProductPage
 *
 */
class Module_ProductPage{

	/**
	 * 分页模块
	 */
	public Module module(
		com.lianjing.sh.spring.web.controller.enhance.module.feature.PageModuleFeatureSupport moduleFeature,
		C_Index_Module_Detail_ProductPage.ProductPage.Operate c_Index_Module_Detail_ProductPage_ProductPage_Operate
	,	C_Index_Module_Detail_ProductEditAccess.ProductEditAccess.Operate c_Index_Module_Detail_ProductEditAccess_ProductEditAccess_Operate
	,	C_Index_Module_Detail_ProductDelete.ProductDelete.Operate c_Index_Module_Detail_ProductDelete_ProductDelete_Operate
	,	C_Index_Module_Detail_ProductPublish.ProductPublish.Operate c_Index_Module_Detail_ProductPublish_ProductPublish_Operate
	,	C_Index_Module_Detail_ProductUp.ProductUp.Operate c_Index_Module_Detail_ProductUp_ProductUp_Operate
	,	C_Index_Module_Detail_ProductDown.ProductDown.Operate c_Index_Module_Detail_ProductDown_ProductDown_Operate
	){
		return
			new Module(
					new ModuleHead("产品列表")
					, 
					new PageModuleBody(
							moduleFeature,
							ProductPage_OutputInfo.outputInfo(),
							new PageFilterInfo(
									ProductPage_OutputInfo.pageInfo(), 
									ProductPage_OutputInfo.orderInfo()
								),
							c_Index_Module_Detail_ProductPage_ProductPage_Operate
						)
						.addListOperate(
							c_Index_Module_Detail_ProductEditAccess_ProductEditAccess_Operate
								.defaultComment("编辑")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.addListOperate(
							c_Index_Module_Detail_ProductDelete_ProductDelete_Operate
								.defaultComment("删除")
						)
						.addListOperate(
							c_Index_Module_Detail_ProductPublish_ProductPublish_Operate
								.defaultComment("发布")
						)
						.addListOperate(
							c_Index_Module_Detail_ProductUp_ProductUp_Operate
								.defaultComment("上架")
						)
						.addListOperate(
							c_Index_Module_Detail_ProductDown_ProductDown_Operate
								.defaultComment("下架")
						)
						.setIdentifier("id")
				);
	}
	
	public Module module(
		C_Index_Module_Detail_ProductPage.ProductPage.Operate c_Index_Module_Detail_ProductPage_ProductPage_Operate
	,	C_Index_Module_Detail_ProductEditAccess.ProductEditAccess.Operate c_Index_Module_Detail_ProductEditAccess_ProductEditAccess_Operate
	,	C_Index_Module_Detail_ProductDelete.ProductDelete.Operate c_Index_Module_Detail_ProductDelete_ProductDelete_Operate
	,	C_Index_Module_Detail_ProductPublish.ProductPublish.Operate c_Index_Module_Detail_ProductPublish_ProductPublish_Operate
	,	C_Index_Module_Detail_ProductUp.ProductUp.Operate c_Index_Module_Detail_ProductUp_ProductUp_Operate
	,	C_Index_Module_Detail_ProductDown.ProductDown.Operate c_Index_Module_Detail_ProductDown_ProductDown_Operate
	){
		return this.module(
				null,
				c_Index_Module_Detail_ProductPage_ProductPage_Operate
	,			c_Index_Module_Detail_ProductEditAccess_ProductEditAccess_Operate
	,			c_Index_Module_Detail_ProductDelete_ProductDelete_Operate
	,			c_Index_Module_Detail_ProductPublish_ProductPublish_Operate
	,			c_Index_Module_Detail_ProductUp_ProductUp_Operate
	,			c_Index_Module_Detail_ProductDown_ProductDown_Operate
			);
	}
	
	
	/**
	 * 输出模型
	 */
	

}
